package com.example.onlinemonitoring.serviceImpl;

import com.example.onlinemonitoring.model.Appdevice;

import org.springframework.stereotype.Service;
import com.example.onlinemonitoring.Util.tem.CommonAbstractBaseService;
import com.example.onlinemonitoring.service.AppdeviceService;

import tk.mybatis.mapper.entity.Example;

/**
 * @description Appdevice接口实现
 * @author generator
 * @since 2022-04-09 13:25:32
 */
@Service
public class AppdeviceServiceImpl extends CommonAbstractBaseService<Appdevice> implements AppdeviceService {
    public void UpdateAppdeviceName(String name, String simple) {
        Appdevice record = new Appdevice();
        record.setName(name);
        record.setcSimple(name);
        Example example = new Example(Appdevice.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("simple", simple);
        updateByExampleSelective(record, example);
    }
}
